<%@page import="com.depot.basedata.companyInfo.domain.TcCompany"%>
<%@page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%@taglib prefix="x" uri="/soar-bx-tags"%>
<x:HeaderParts/>
<x:MainPartsTag>
<x:zone name="MainZone">
<x:Form action="basedata/companyInfo.shtml">
<x:ParamsParts>
	<x:TextField name="compCode" type="hidden"></x:TextField>
</x:ParamsParts>
<x:TabParts activeIndex="0" tabs="[企业备案列表:'']" btns=""></x:TabParts>
<x:SearchParts>
	企业代码：<x:TextField name="searchCompCode"></x:TextField>
	企业名称：<x:TextField name="searchCompName"></x:TextField>
	企业类型：<x:TextField name="searchCompType"></x:TextField>
	是否月结：<x:TextField name="searchIsYj"></x:TextField>
	企业地址：<x:TextField name="searchCompAddress"></x:TextField>
	联系人：<x:TextField name="searchLinkPerson"></x:TextField>
	联系电话：<x:TextField name="searchLinkPhone"></x:TextField>
	备案状态：<x:TextField name="searchRecordStatus"></x:TextField>
</x:SearchParts>
<x:DataListParts>
	<thead>
		<tr>
			<td width="4%" align="center">序号</td>
			<td width="10%" align="center"  sort="t1.COMP_CODE">企业代码</td>
			<td width="10%" align="center"  sort="t1.COMP_NAME">企业名称</td>
			<td width="6%" align="center"   sort="t1.COMP_TYPE">企业类型</td>
			<td width="6%" align="center"   sort="t1.IS_YJ">是否月结</td>
			<td width="8%" align="center"   sort="t1.COMP_ADDRESS">企业地址</td>
			<td width="8%" align="center"   sort="t1.LINK_PERSON">联系人</td>
			<td width="6%" align="center"   sort="t1.LINK_PHONE">联系电话</td>
			<td width="6%" align="center"   sort="t1.RECORD_STATUS">备案状态</td>
			<td width="4%" align="center">操作</td>
		</tr>
	</thead>
	<tbody>
		<s:iterator value="sysPageList">
			<tr>
				<td align="center"><s:property value="PAGE_ROW_NUM"  /></td>
				<td align="center"><s:property value="COMP_CODE" /></td>
				<td align="center"><s:property value="COMP_NAME" /></td>
				<td align="center"><s:if test="IS_YJ == \"1\"">是</s:if><s:if test="IS_YJ == \"0\"">否</s:if></td>
				<td align="center"><s:property value="COMP_ADDRESS"/></td>
				<td align="center"><s:property value="LINK_PERSON"/></td>
				<td align="center"><s:property value="LINK_PHONE" /></td>
				<td align="center"><s:if test="RECORD_STATUS == \"0\"">尚未备案</s:if><s:if test="RECORD_STATUS == \"1\"">已备案</s:if><s:if test="RECORD_STATUS == \"2\"">冻结</s:if><s:if test="RECORD_STATUS == \"3\"">注销</s:if></td>
				<td align="center">
					<input type="button" class="btn btn-info btn-xs" value="编辑" onclick="edit('<s:property value="COMP_CODE"/>')" />
					<input type="button" class="btn btn-info btn-xs" value="删除" onclick="del('<s:property value="COMP_CODE"/>')" />
				</td>
			</tr>
		</s:iterator>
	</tbody>
</x:DataListParts>
<x:ButtonsParts>
				<x:Button role="primary" value="新增" onclick="X.Modal('basedata/companyInfo!add.shtml','','','1000px','390px','新增企业备案')"></x:Button>
</x:ButtonsParts>
<x:JsParts fn="edit,del">
	function edit(compId)
	{
		X.Menu("basedata/companyInfo!edit.shtml?compCode="+compId);
	}
	function del(compId)
	{
		X.Menu("basedata/companyInfo!del.shtml?compCode="+compId);
	}
</x:JsParts>
</x:Form>
</x:zone>
</x:MainPartsTag>
